{% if session.logged %}
{% else %}
<div id="persona_login">
    <script type="text/javascript" language="javascript" charset="utf-8">
        function login() {
            $("#sidebar").fadeOut("slow");
            $.post(
                "/login/post/", 
                {
                    login_user: $(".persona_login_user").val(), 
                    login_passwd: $(".persona_login_passwd").val()
                }, 
                function (data) {
                    $("#sidebar").html("");
                    $("#sidebar").html(data);
                    $("#sidebar").fadeIn("slow");
                },
                "html")
        }
    </script>
    <form action="javascript:login()" method="post">
        <label for="login_user">Username</label>
        <br />
        <input type="text" class="persona_login_user" name="login_user" size="20" />
        <br />
        <label for="login_passwd">Password</label>
        <br />
        <input type="password" class="persona_login_passwd" name="login_passwd" size="20" />
        <br />
        
        <br />
        <input type="submit" value="Login" />
    </form>
</div>
{% endif %}
